import Vue from "vue";
// @ts-ignore
import App from "./App";
import Vant from "vant";
import "vant/lib/index.css";
import router from "./router"; //导入
// @ts-ignore
import request from "@/utils/request";
// 导入vuex包
import store from "@/store/index.js";
// 导入jsCookie
import jsCookie from "js-cookie";
import { Toast } from "vant";
import { Dialog } from "vant";
Vue.use(Vant);
Vue.use(Toast);
Vue.use(Dialog);
Vue.config.productionTip = false;
// 根据原型链的原理
// 把 导出的 request 数据导入到Vue里prototype
Vue.prototype.$post = request.post;
Vue.prototype.$get = request.get;
Vue.prototype.$jsCookie = jsCookie;

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  store,
  components: { App },
  template: "<App/>"
});
